package com.dingli.shop.po;/*
 * @author 你在教我敲代码呀
 * @date 2021/1/1223:18
 *佛祖保佑，永无BUG
 */

/*
* `cat_id` int(32) NOT NULL AUTO_INCREMENT COMMENT '分类唯一ID',
  `cat_name` varchar(255) DEFAULT NULL COMMENT '分类名称',
  `cat_pid` int(32) DEFAULT NULL COMMENT '分类父ID',
  `cat_level` int(4) DEFAULT NULL COMMENT '分类层级 0: 顶级 1:二级 2:三级',
  `cat_deleted` int(2) DEFAULT '0' COMMENT '是否删除 1为删除',
  `cat_icon` varchar(255) DEFAULT NULL,
  `cat_src` text,
* */

import java.util.List;

public class CatGoods {
    private Integer cat_id;
    private String  cat_name;
    private Integer cat_pid;
    private Integer cat_level;
    private Integer cat_deleted;
    private List<CatGoods> Children;

    public Integer getCat_id() {
        return cat_id;
    }

    public void setCat_id(Integer cat_id) {
        this.cat_id = cat_id;
    }

    public String getCat_name() {
        return cat_name;
    }

    public void setCat_name(String cat_name) {
        this.cat_name = cat_name;
    }

    public Integer getCat_pid() {
        return cat_pid;
    }

    public void setCat_pid(Integer cat_pid) {
        this.cat_pid = cat_pid;
    }

    public Integer getCat_level() {
        return cat_level;
    }

    public void setCat_level(Integer cat_level) {
        this.cat_level = cat_level;
    }

    public Integer getCat_deleted() {
        return cat_deleted;
    }

    public void setCat_deleted(Integer cat_deleted) {
        this.cat_deleted = cat_deleted;
    }

    public List<CatGoods> getChildren() {
        return Children;
    }

    public void setChildren(List<CatGoods> children) {
        Children = children;
    }

    @Override
    public String toString() {
        return "CatGoods{" +
                "cat_id=" + cat_id +
                ", cat_name='" + cat_name + '\'' +
                ", cat_pid=" + cat_pid +
                ", cat_level=" + cat_level +
                ", cat_deleted=" + cat_deleted +
                ", Children=" + Children +
                '}';
    }
}
